package yxy.cherry.battle.module.affix.condition;

import yxy.cherry.battle.Fighter;
import yxy.cherry.battle.module.event.FighterEvent;

/**
 * @author James
 * 有反击
 * @date 2022/2/25 18:01
 **/
@AffixconditionType(Type = 12)
public class AffixCondition12HaveStrike extends AffixCondition{

    public AffixCondition12HaveStrike(int param) {
        super(param);
    }

    @Override
    public boolean checkOne(Fighter actor) {
        return true;
    }

    @Override
    public boolean check(Fighter actor, Fighter target) {
        return actor.getEvents().contains(FighterEvent.FE_Strick);    }

    @Override
    public String toString() {
        return String.format("未反击过");
    }
}
